package com.app.newiptv.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Richard
 */
public class ImageSource implements Parcelable {
    public int id;

    public String verticalImg = "";

    public String horizontalImg = "";

    public String thumImg = "";

    // ---------------------Parcelable implements------------
    public static final Creator<ImageSource> CREATOR = new Creator<ImageSource>() {

        @Override
        public ImageSource createFromParcel(Parcel source) {
            String verticalImg = source.readString();
            String horizontalImg = source.readString();
            String thumImg = source.readString();

            ImageSource imageSource = new ImageSource();
            imageSource.verticalImg = verticalImg;
            imageSource.horizontalImg = horizontalImg;
            imageSource.thumImg = thumImg;
            return imageSource;
        }

        @Override
        public ImageSource[] newArray(int size) {
            return new ImageSource[size];
        }

    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(verticalImg);
        dest.writeString(horizontalImg);
        dest.writeString(thumImg);
    }
}
